package com.ruoyi.user.service.impl;

import java.util.List;
import com.ruoyi.common.core.utils.DateUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.user.mapper.AppointmentListMapper;
import com.ruoyi.user.domain.AppointmentList;
import com.ruoyi.user.service.IAppointmentListService;

/**
 * 预约列表Service业务层处理
 * 
 * @author ruoyi
 * @date 2025-09-11
 */
@Service
public class AppointmentListServiceImpl implements IAppointmentListService 
{
    @Autowired
    private AppointmentListMapper appointmentListMapper;

    /**
     * 查询预约列表
     * 
     * @param id 预约列表主键
     * @return 预约列表
     */
    @Override
    public AppointmentList selectAppointmentListById(Integer id)
    {
        return appointmentListMapper.selectAppointmentListById(id);
    }

    /**
     * 查询预约列表列表
     * 
     * @param appointmentList 预约列表
     * @return 预约列表
     */
    @Override
    public List<AppointmentList> selectAppointmentListList(AppointmentList appointmentList)
    {
        return appointmentListMapper.selectAppointmentListList(appointmentList);
    }

    /**
     * 新增预约列表
     * 
     * @param appointmentList 预约列表
     * @return 结果
     */
    @Override
    public int insertAppointmentList(AppointmentList appointmentList)
    {
        appointmentList.setCreateTime(DateUtils.getNowDate());
        return appointmentListMapper.insertAppointmentList(appointmentList);
    }

    /**
     * 修改预约列表
     * 
     * @param appointmentList 预约列表
     * @return 结果
     */
    @Override
    public int updateAppointmentList(AppointmentList appointmentList)
    {
        return appointmentListMapper.updateAppointmentList(appointmentList);
    }

    /**
     * 批量删除预约列表
     * 
     * @param ids 需要删除的预约列表主键
     * @return 结果
     */
    @Override
    public int deleteAppointmentListByIds(Integer[] ids)
    {
        return appointmentListMapper.deleteAppointmentListByIds(ids);
    }

    /**
     * 删除预约列表信息
     * 
     * @param id 预约列表主键
     * @return 结果
     */
    @Override
    public int deleteAppointmentListById(Integer id)
    {
        return appointmentListMapper.deleteAppointmentListById(id);
    }
}
